import request from '@/utils/request'

export default {
    getParkListPage(current,limit,parkQuery){
        return request({
            url: `/proservice/pro-park/pageParkCondition/${current}/${limit}`,
            method: 'post',
            data:parkQuery
        })
    },
    deleteParkById(id){
        return request({
            url: `/proservice/pro-park/${id}`,
            method: 'delete'
        })
    },
    addPark(proPark){
        return request({
            url: `/proservice/pro-park/addPark`,
            method: 'post',
            data: proPark
        })
    },
    getParkById(id){
        return request({
            url: `/proservice/pro-park/getPark/${id}`,
            method: 'get'
        })
    },
    updateParkInfo(proPark){
        return request({
            url: `/proservice/pro-park/updatePark`,
            method: 'post',
            data: proPark
        })
    }
}